$primary-color: #8ac24e;
$secondary-color: #64b3f4;
$third-color: #d64680;

main {
  .nav-main {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 30px;
    width: 100%;
    height: 55px;
    padding: 10px;
    background-color: $secondary-color;
    border-radius: 10px;
    color: white;
    .btn-back-to-exam {
      position: absolute;
      top: 50%;
      left: 20px;
      transform: translateY(-50%);
      font-size: 18px;
      border: none;
      background-color: transparent;
      color: white;
      &:hover {
        cursor: pointer;
      }
    }
    h3 {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }

  .main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 500px;
    .content,
    .sidebar {
      border-radius: 5px;
      background-color: #fff;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
      height: 100%;
    }

    .content {
      position: relative;
      width: 66%;
      padding: 10px 20px;

      .content-title {
        width: 100%;
        height: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        h4 {
          width: fit-content;
        }
        .num-of-questions {
          font-size: 14px;
          color: darkgreen;
          width: fit-content;
        }
        border-bottom: 1px solid #ccc;

        margin-bottom: 20px;
      }
      .content-question {
        position: relative;
        width: 100%;
        height: 350px;

        h5.question-text {
          font-weight: normal;
        }

        .circle-box {
          width: 30px;
          height: 30px;
          border-radius: 50%;
          background-color: #ccc;
          color: $third-color;
          line-height: 30px;
          text-align: center;
          &:hover {
            background-color: $primary-color;
            color: white;
          }
        }

        .circle-selected {
          background-color: $primary-color;
          color: white;
        }

        .answers {
          margin: 20px 0;
          li {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
            font-size: 14px;
            flex-shrink: 0;
            span {
              width: 90%;
              margin-left: 10px;
            }
            &:hover {
              cursor: pointer;
              color: $primary-color;
            }
          }
        }
      }

      #btn-next-question {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 40px;
        border-radius: 5px;
        border: none;
        color: #fff;
        background-color: $primary-color;
        &:hover {
          cursor: pointer;
        }
      }
    }

    .sidebar {
      position: relative;
      width: 30%;
      padding: 10px 20px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      font-size: 14px;
      [class^='sb-box'] {
        width: 100%;
        margin-bottom: 20px;
      }
      .sb-box-1 {
        height: 86px;

        .sb-row {
          height: 50%;
          line-height: 43px;
          border-bottom: 1px solid #ccc;
          &:last-of-type {
            border-bottom: 1px solid #ccc;
          }
          span {
            color: darkred;
          }
        }
      }
      .sb-box-2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .sb-box-3 {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        .rect-box {
          width: 30px;
          height: 30px;
          border-radius: 5px;
          border: none;
          line-height: 30px;
          text-align: center;
          margin-right: 8px;
          box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
          &:nth-of-type(5n) {
            margin-right: 0;
          }
          &:hover {
            cursor: pointer;
          }
        }

        .answered {
          background-color: #aaa;
          color: rgb(75, 75, 75);
        }
      }
      #btn-submit-exam {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 40px;
        border-radius: 5px;
        border: none;
        color: lightgoldenrodyellow;
        background-color: $primary-color;
        &:hover {
          cursor: pointer;
        }
      }
    }
  }
}
